(function(e){"use strict";BX.addCustomEvent("BX.Landing.Block:init",(function(e){BX.Landing.SliderHelper.init(e,BX.Landing.SliderHelper.ACTION_INIT)}));BX.addCustomEvent("BX.Landing.Block:remove",(function(e){BX.Landing.SliderHelper.destroy(e)}));BX.addCustomEvent("BX.Landing.Block:beforeApplyContentChanges",(function(e){BX.Landing.SliderHelper.destroy(e)}));BX.addCustomEvent("BX.Landing.Block:Node:update",BX.debounce((function(e){if(!BX.Landing.SliderHelper.isEditorEnable()){BX.Landing.SliderHelper.init(e,BX.Landing.SliderHelper.ACTION_UPDATE)}}),300));BX.addCustomEvent("BX.Landing.Block:Card:beforeAdd",(function(e){BX.Landing.SliderHelper.destroy(e)}));BX.addCustomEvent("BX.Landing.Block:Card:add",(function(e){BX.Landing.SliderHelper.init(e,BX.Landing.SliderHelper.ACTION_ADD)}));BX.addCustomEvent("BX.Landing.Block:Cards:beforeUpdate",(function(e){BX.Landing.SliderHelper.destroy(e)}));BX.addCustomEvent("BX.Landing.Block:Cards:update",(function(e){BX.Landing.SliderHelper.init(e,BX.Landing.SliderHelper.ACTION_UPDATE)}));BX.addCustomEvent("BX.Landing.Block:Card:beforeRemove",(function(e){BX.Landing.SliderHelper.destroy(e)}));BX.addCustomEvent("BX.Landing.Block:Card:remove",(function(e){BX.Landing.SliderHelper.init(e,BX.Landing.SliderHelper.ACTION_REMOVE_SLIDE)}));BX.addCustomEvent("BX.Landing.Block:updateStyle",BX.debounce((function(n){const i=BX.Landing.SliderHelper.makeCarouselRelativeSelector(n);const d=[].slice.call(n.block.querySelectorAll(i));let a=false;d.forEach((function(n){if(e(n).slick("slickGetOption","vertical")){a=true}}));if(a){BX.Landing.SliderHelper.init(n,BX.Landing.SliderHelper.ACTION_UPDATE)}if(n.node&&n.data&&n.data.style&&Object.keys(n.data.style).length>0){n.node.forEach((i=>{let d=e(i).data("originalStyling")||"";for(const e in n.data.style){d+=e+":"+n.data.style[e]+";"}e(i).data("originalStyling",d)}))}}),1e3));BX.addCustomEvent("BX.Landing.Editor:enable",(function(n){var i=BX.findParent(n,{class:"block-wrapper"});if(i){if(i.querySelector("."+BX.Landing.SliderHelper.CAROUSEL_CLASS)){BX.Landing.SliderHelper.setEditorEnable(true);e(".js-carousel").slick("slickPause")}}}));BX.addCustomEvent("BX.Landing.Editor:disable",(function(){BX.Landing.SliderHelper.setEditorEnable(false);e(".js-carousel").slick("slickPlay")}));BX.addCustomEvent("BX.Landing.Lazyload:loadImage",(function(n){var i=BX.Landing.SliderHelper.makeCarouselRelativeSelector(n);var d=[].slice.call(n.block.querySelectorAll(i));d.forEach((function(n){var i=e(n).slick("getSlick");if(i){i.setPosition()}}))}));BX.addCustomEvent("BX.Landing.Block:Node:updateAttr",(function(e){BX.Landing.SliderHelper.init(e,BX.Landing.SliderHelper.ACTION_UPDATE)}))})(window.jQueryLanding||jQuery);
//# sourceMappingURL=base_carousel_init.map.js